package com.iot.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.annotation.Excel;
import com.iot.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 device_state
 * 
 * @author iot
 * @date 2024-11-18
 */
@Data
public class DeviceState extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 状态类型1:开机、2:关机、3:运行、4:停止运行、5:故障、6:停止故障 */
    @Excel(name = "状态类型1:开机、2:关机、3:运行、4:停止运行、5:故障、6:停止故障")
    private Integer stateType;

    /** 状态时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "状态时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date stateTime;

    /** 是否被删除 */
    @Excel(name = "是否被删除")
    private Integer isDeleted;


}
